package com.ruoyi.welder.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.welder.mapper.WelderAnalysisMapper;
import com.ruoyi.welder.domain.WelderAnalysis;
import com.ruoyi.welder.service.IWelderAnalysisService;
import com.ruoyi.common.core.text.Convert;

/**
 * 焊工数据统计分析Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-12
 */
@Service
public class WelderAnalysisServiceImpl implements IWelderAnalysisService 
{
    @Autowired
    private WelderAnalysisMapper welderAnalysisMapper;

    /**
     * 查询焊工数据统计分析
     * 
     * @param welderId 焊工数据统计分析主键
     * @return 焊工数据统计分析
     */
    @Override
    public WelderAnalysis selectWelderAnalysisByWelderId(String welderId)
    {
        return welderAnalysisMapper.selectWelderAnalysisByWelderId(welderId);
    }

    /**
     * 查询焊工数据统计分析列表
     * 
     * @param welderAnalysis 焊工数据统计分析
     * @return 焊工数据统计分析
     */
    @Override
    public List<WelderAnalysis> selectWelderAnalysisList(WelderAnalysis welderAnalysis)
    {
        return welderAnalysisMapper.selectWelderAnalysisList(welderAnalysis);
    }

    /**
     * 新增焊工数据统计分析
     * 
     * @param welderAnalysis 焊工数据统计分析
     * @return 结果
     */
    @Override
    public int insertWelderAnalysis(WelderAnalysis welderAnalysis)
    {
        return welderAnalysisMapper.insertWelderAnalysis(welderAnalysis);
    }

    /**
     * 修改焊工数据统计分析
     * 
     * @param welderAnalysis 焊工数据统计分析
     * @return 结果
     */
    @Override
    public int updateWelderAnalysis(WelderAnalysis welderAnalysis)
    {
        return welderAnalysisMapper.updateWelderAnalysis(welderAnalysis);
    }

    /**
     * 批量删除焊工数据统计分析
     * 
     * @param welderIds 需要删除的焊工数据统计分析主键
     * @return 结果
     */
    @Override
    public int deleteWelderAnalysisByWelderIds(String welderIds)
    {
        return welderAnalysisMapper.deleteWelderAnalysisByWelderIds(Convert.toStrArray(welderIds));
    }

    /**
     * 删除焊工数据统计分析信息
     * 
     * @param welderId 焊工数据统计分析主键
     * @return 结果
     */
    @Override
    public int deleteWelderAnalysisByWelderId(String welderId)
    {
        return welderAnalysisMapper.deleteWelderAnalysisByWelderId(welderId);
    }
}
